import request from '@/utils/request'

// 查询应急避难所基本信息列表
export function listShelter(query) {
  return request({
    url: '/rm/shelter/list',
    method: 'get',
    params: query
  })
}

// 查询应急避难所基本信息详细
export function getShelter(id) {
  return request({
    url: '/rm/shelter/' + id,
    method: 'get'
  })
}

// 新增应急避难所基本信息
export function addShelter(data) {
  return request({
    url: '/rm/shelter',
    method: 'post',
    data: data
  })
}

// 修改应急避难所基本信息
export function updateShelter(data) {
  return request({
    url: '/rm/shelter',
    method: 'put',
    data: data
  })
}

// 删除应急避难所基本信息
export function delShelter(id) {
  return request({
    url: '/rm/shelter/' + id,
    method: 'delete'
  })
}
